package com.tms.mapper.develop;

import com.tms.domain.Tool;
import com.tms.domain.index.ToolStatusInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ToolMapper {

    int deleteByPrimaryKey(int id);

    int insert(Tool tool);

    int insertSelective(Tool tool);

    Tool selectByPrimaryKey(int id);

    Tool selectByCodeAndSeqId(@Param("code") String code, @Param("seqId") int seqId);

    int updateByPrimaryKeySelective(Tool tool);

    int updateByPrimaryKey(Tool tool);

    List<Tool> selectByCode(String code);

    int selectNumOfTool();

    int selectNumOfToolScrap();

    int selectMaxSeqIdByCode(String code);

    List<ToolStatusInfo> selectStatusNum();
}